﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLTV_Public;
using QLTV_Data;
using System.Data;

namespace QLTV_BLL
{
  public  class TaiLieu_BLL
    {
      TaiLieu_Data tailieu_data = new TaiLieu_Data();
      public DataTable TaoBang(string sql)
      {
          return tailieu_data.TaoBang(sql);
      }
      public DataTable LayDuLieu()
      {
          return tailieu_data.LayDuLieu();
      }
      public int Insert(TaiLieu_Public maTaiLieu, TaiLieu_Public nhanDe, TaiLieu_Public phuDe, TaiLieu_Public tacGiaChinh, TaiLieu_Public dongTacGia, TaiLieu_Public nguoiBienDich, TaiLieu_Public tomTat, TaiLieu_Public lanXB, TaiLieu_Public namXB, TaiLieu_Public maNgonNgu, TaiLieu_Public maLinhVuc, TaiLieu_Public maTheLoai, TaiLieu_Public maNhaXB, TaiLieu_Public maNguonCung, TaiLieu_Public maVtri, TaiLieu_Public soTrang, TaiLieu_Public soLuong, TaiLieu_Public giaBia,TaiLieu_Public ngayBienMuc, TaiLieu_Public trangThai,TaiLieu_Public maNhanVien)
      {
          return tailieu_data.Insert(maTaiLieu, nhanDe, phuDe, tacGiaChinh, dongTacGia, nguoiBienDich, tomTat, lanXB, namXB, maNgonNgu, maLinhVuc, maTheLoai, maNhaXB, maNguonCung, maVtri, soTrang, soLuong, giaBia,ngayBienMuc, trangThai,maNhanVien);
      }
      public int Update(TaiLieu_Public maTaiLieu, TaiLieu_Public nhanDe, TaiLieu_Public phuDe, TaiLieu_Public tacGiaChinh, TaiLieu_Public dongTacGia, TaiLieu_Public nguoiBienDich, TaiLieu_Public tomTat, TaiLieu_Public lanXB, TaiLieu_Public namXB, TaiLieu_Public maNgonNgu, TaiLieu_Public maLinhVuc, TaiLieu_Public maTheLoai, TaiLieu_Public maNhaXB, TaiLieu_Public maNguonCung, TaiLieu_Public maVtri, TaiLieu_Public soTrang, TaiLieu_Public soLuong, TaiLieu_Public giaBia,TaiLieu_Public ngayBienMuc, TaiLieu_Public trangThai,TaiLieu_Public maNhanVien)
      {
          return tailieu_data.Update(maTaiLieu, nhanDe, phuDe, tacGiaChinh, dongTacGia, nguoiBienDich, tomTat, lanXB, namXB, maNgonNgu, maLinhVuc, maTheLoai, maNhaXB, maNguonCung, maVtri, soTrang, soLuong, giaBia,ngayBienMuc, trangThai,maNhanVien);
          
      }
      public int Delete(TaiLieu_Public maTaiLieu)
      {
          return tailieu_data.Delete(maTaiLieu);
      }
    }
}
